import request from '@/utils/request'

// 查询BiOrigOrderProduct列表
export function listBiOrigOrderProduct(query) {
  return request({
    url: '/product/BiOrigOrder/list',
    method: 'get',
    params: query
  })
}
// 查询BiOrigOrderProduct列表
export function deleteByPaymentPeriod(query) {
  return request({
    url: '/product/BiOrigOrder/deleteByPaymentPeriod',
    method: 'delete',
    params: query
  })
}
// 查询BiOrigOrderProduct详细
export function getBiOrigOrderProduct(id) {
  return request({
    url: '/product/BiOrigOrder/' + id,
    method: 'get'
  })
}

// 新增BiOrigOrderProduct
export function addBiOrigOrderProduct(data) {
  return request({
    url: '/product/BiOrigOrder',
    method: 'post',
    data: data
  })
}
// 新增BiOrigOrderProduct
export function normalOrderProcess(data) {
  return request({
    url: '/product/BiOrigOrder/normalOrderProcess',
    method: 'get',
    data: data
  })
}
// @PostMapping("/normalOrderProcess")
// 正常订单处理
// @PostMapping("/additionalOrderProcess")
// 补发订单处理
// @PostMapping("/exchangeOrderProcess")
// 换货订单处理
// 新增BiOrigOrderProduct
export function exchangeOrderProcess(data) {
  return request({
    url: '/product/BiOrigOrder/exchangeOrderProcess',
    method: 'get',
    data: data
  })
}
// 新增BiOrigOrderProduct
export function additionalOrderProcess(data) {
  return request({
    url: '/product/BiOrigOrder/additionalOrderProcess',
    method: 'get',
    data: data
  })
}
// 修改BiOrigOrderProduct
export function updateBiOrigOrderProduct(data) {
  return request({
    url: '/product/BiOrigOrder',
    method: 'put',
    data: data
  })
}

// 删除BiOrigOrderProduct
export function delBiOrigOrderProduct(id) {
  return request({
    url: '/product/BiOrigOrder/' + id,
    method: 'delete'
  })
}
